
#pragma once

#include "base/core/singleton.h"
#include "Common/TableDefine.h"


class RankingRankingCfg : public ManualSingleton <RankingRankingCfg>
{
	friend ManualSingleton <RankingRankingCfg>;
public:
	RankingRankingCfg();
	~RankingRankingCfg();
	bool Init(const char *szCfgFile, const char *szSplitChar);
	bool UnInit();
	void Clear();
	const RankingRankingCfgInfo *GetRankingRankingCfgInfo(int32_t rankingID);
	const RankingRankingCfgMap *GetRankingRankingCfgMap() { return &m_RankingRankingCfgMap; }
private:
	RankingRankingCfgMap m_RankingRankingCfgMap;
};

#define  g_MakeRankingRankingCfgTable() (RankingRankingCfg::Instance())
#define  g_GetRankingRankingCfgTable() (RankingRankingCfg::GetInstance())
#define  g_DelRankingRankingCfgTable() (RankingRankingCfg::Destroy())